package entidades;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the recarga database table.
 * 
 */
@Entity
@Table(name="recarga")
public class Recarga implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

    @Temporal( TemporalType.TIMESTAMP)
	private Date fecha;

	private double monto;

	//bi-directional many-to-one association to Tarjeta
    @ManyToOne
	@JoinColumn(name="tarjeta")
	private Tarjeta tarjetaBean;

    public Recarga() {
    }

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getFecha() {
		return this.fecha;
	}

	public void setFecha(Date fecha) {
		this.fecha = fecha;
	}

	public double getMonto() {
		return this.monto;
	}

	public void setMonto(double monto) {
		this.monto = monto;
	}

	public Tarjeta getTarjetaBean() {
		return this.tarjetaBean;
	}

	public void setTarjetaBean(Tarjeta tarjetaBean) {
		this.tarjetaBean = tarjetaBean;
	}
	
}